<h2>用户注册</h2>
<% form_for :user do |form| %>
  <fieldset>
    <legend>请输入您的详细信息</legend>

    <%= error_messages_for "user" %>
    <div class="form_row">
        <label for="screen_name">昵称 </label>
        <%= form.text_field :screen_name, :size => User::SCREEN_NAME_SIZE, :maxlength => User::SCREEN_NAME_MAX_LENGTH  %>
    </div>

    <div class="form_row">
        <label for="email">Email</label>
        <%= form.text_field :email, :size => User::EMAIL_SIZE, :maxlength => User::EMAIL_MAX_LENGTH  %>
    </div>

    <div class="form_row">
        <label for="password">密码 </label>
        <%= form.password_field :password, :size => User::PASSWORD_SIZE, :maxlength => User::PASSWORD_MAX_LENGTH   %>
    </div>

    <div class="form_row">
        <%= submit_tag "注册", :class => "submit" %>
    </div>
  </fieldset>
<% end %>
